Skip to content

Instantly share code, notes, and snippets.

View FilBot3's full-sized avatar
😀
Working hard

FilBot3 FilBot3

😀
Working hard
View GitHub Profile
@FilBot3
FilBot3 / phil_ruby_dsl_example_01.rb
Created September 24, 2018 02:52
An example of a Ruby DSL for my reference.
#!/usr/bin/env ruby
module PhilDsl
def self.spork(&block)
if block_given?
if block.arity == 1
yield self
else
instance_eval(&block)
end
@gryte
gryte / git_flow.md
Last active February 26, 2019 09:44
Git Flow

Your workflow should be:

git pull origin master # get the latest merged code
git checkout -b al-uber-cool-feature # create a feature branch
<code code code> # only one thing at a time!!
<test test test>
git add <filespec> # add the files you changed
git commit -sm "What I changed"
git push
@danidiaz
danidiaz / netrw.txt
Created October 7, 2016 20:57
Vim's netrw commands.
--- ----------------- ----
Map Quick Explanation Link
--- ----------------- ----
< <F1> Causes Netrw to issue help
<cr> Netrw will enter the directory or read the file |netrw-cr|
<del> Netrw will attempt to remove the file/directory |netrw-del|
<c-h> Edit file hiding list |netrw-ctrl-h|
<c-l> Causes Netrw to refresh the directory listing |netrw-ctrl-l|
<c-r> Browse using a gvim server |netrw-ctrl-r|
<c-tab> Shrink/expand a netrw/explore window |netrw-c-tab|
@t-mart
t-mart / netrw quick reference.md
Last active July 31, 2024 09:04
A quick reference for Vim's built-in netrw file selector.
Map Action
<F1> Causes Netrw to issue help
<cr> Netrw will enter the directory or read the file
<del> Netrw will attempt to remove the file/directory
- Makes Netrw go up one directory
a Toggles between normal display, hiding (suppress display of files matching g:netrw_list_hide) showing (display only files which match g:netrw_list_hide)
c Make browsing directory the current directory
C Setting the editing window
d Make a directory
@lmarkus
lmarkus / README.MD
Last active September 12, 2024 16:54
Extracting / Exporting custom emoji from Slack

Extracting Emoji From Slack!

Slack doesn't provide an easy way to extract custom emoji from a team. (Especially teams with thousands of custom emoji) This Gist walks you through a relatively simple approach to get your emoji out.

If you're an admin of your own team, you can get the list of emoji directly using this API: https://api.slack.com/methods/emoji.list. Once you have it, skip to Step 3

HOWEVER! This gist is intended for people who don't have admin access, nor access tokens for using that list.

Follow along...

@ryanmaclean
ryanmaclean / disable_k400r_tap_click.md
Last active August 12, 2024 15:42
Turn off Logitech k400r Tap to Click

Turn off k400r Tap to Click

Without even installing drivers, the Logitech k400r tap-to-click functionality can be turned off by holding down the "FN" (function) key and the left click button on the trackpad.

Source

@FilBot3
FilBot3 / zabbix_proxy_fixit.sql
Last active July 4, 2018 02:43
Zabbix SQL queries to help "fix" issues
USE zabbix_proxy;
TRUNCATE TABLE proxy_history;
DELETE FROM ids;
@Khoulaiz
Khoulaiz / gist:41b387883a208d6e914b
Last active August 30, 2024 01:05
Checking ports without telnet

Here are several different ways to test a TCP port without telnet.

$ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_5.3
^C

$ cat &lt; /dev/tcp/127.0.0.1/23
@ipedrazas
ipedrazas / knife cheat
Last active December 13, 2021 11:50
Hello!
# knife cheat
## Search Examples
knife search "name:ip*"
knife search "platform:ubuntu*"
knife search "platform:*" -a macaddress
knife search "platform:ubuntu*" -a uptime
knife search "platform:ubuntu*" -a virtualization.system
knife search "platform:ubuntu*" -a network.default_gateway
@ceilfors
ceilfors / ssh-copy-id.py
Last active June 3, 2023 01:48
ssh-copy-id for Windows
"""ssh-copy-id for Windows.
Example usage: python ssh-copy-id.py ceilfors@my-remote-machine
This script is dependent on msysgit by default as it requires scp and ssh.
For convenience you can also try that comes http://bliker.github.io/cmder/.
"""
import argparse, os
from subprocess import call