Run lsblk
to see what is your pendrive
dd if= of=/dev/sd status="progress"
import argparse | |
import math | |
from binascii import unhexlify | |
def egcd(a, b): | |
if a == 0: | |
return b, 0, 1 | |
else: |
;;Trigger a refresh of vc-modeline on some magit functions | |
(require 'magit) | |
(defun refresh-vc-state (&rest r) (message "%S" (current-buffer))(vc-refresh-state)) | |
(advice-add 'magit-checkout-revision :after 'refresh-vc-state '((name . "magit-refresh-on-checkout-revision"))) | |
(advice-add 'magit-branch-create :after 'refresh-vc-state '((name . "magit-refresh-on-branch-create"))) | |
(advice-add 'magit-branch-and-checkout :after 'refresh-vc-state '((name . "magit-refresh-on-checkout-and-branch"))) | |
(advice-add 'magit-branch-or-checkout :after 'refresh-vc-state '((name . "magit-refresh-on-branch-or-checkout"))) |
cd ~/Applications | |
wget https://downloads.sourceforge.net/project/dirb/dirb/2.22/dirb222.tar.gz | |
tar -xvf dirb222.tar.gz | |
rm dirb222.tar.gz | |
brew install autoconf | |
chmod -R 755 dirb222 | |
cd dirb222 | |
./configure | |
make | |
make install |
#!/usr/bin/env python3 | |
# | |
# Query AWS Athena using SQL | |
# Copyright (c) Alexey Baikov <sysboss[at]mail.ru> | |
# | |
# This snippet is a basic example to query Athen and load the results | |
# to a variable. | |
# | |
# Requirements: | |
# > pip3 install boto3 botocore retrying |
/* | |
* Migration | |
*/ | |
'use strict'; | |
module.exports = { | |
up: function(queryInterface, Sequelize) { | |
return queryInterface.createTable('Users', { | |
firstName: { | |
type: Sequelize.STRING | |
}, |
--- | |
- name: Install MacOS Packages | |
hosts: localhost | |
become: false | |
vars: | |
brew_cask_packages: | |
- atom | |
- docker | |
- dropbox | |
- firefox |
#!/bin/bash | |
#Make sure we’re running with root permissions. | |
if [ `whoami` != root ]; then | |
echo Please run this script using sudo | |
echo Just type “sudo !!” | |
exit | |
fi | |
#Check for 64-bit arch | |
if [uname -m != x86_64]; then |
/* USAGE | |
Go to https://github.com/watching | |
Paste this function in the console | |
e.g. unwatchRepos("rails|node|go") | |
That unwatches repos containing rails, node or go in the repo link. | |
*/ | |
var unwatchRepos = (pattern) => { | |
var list = document.getElementsByClassName('repo-list')[0] | |
var rows = list.getElementsByClassName('js-subscription-row') |