Skip to content

Instantly share code, notes, and snippets.

View wesinator's full-sized avatar

Wes wesinator

View GitHub Profile
@franleplant
franleplant / main.sh
Created July 28, 2014 15:47
Install Git Latest of Ubuntu 12.04
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
@javigomez
javigomez / finder.sh
Created July 31, 2014 15:31
Show .git and other system hidden files in Mac Finder
# Just run this:
defaults write com.apple.finder AppleShowAllFiles TRUE
@liulinyang
liulinyang / my-jp-spdy.pac
Created November 25, 2014 05:43
SPDY-PAC
// Flora_Pac by @leaskh
// www.leaskh.com, [email protected]
function FindProxyForURL(url, host) {
var proxy = 'HTTPS 54.238.90.55:443; ';
var cdcib_proxy = 'DIRECT ';
if (shExpMatch(url, "*.trendmicro.com/*"))
return "DIRECT";
var list = [
@iMikie
iMikie / Invisible_files_on_Mac.md
Last active July 9, 2019 17:29
Ruby Newbie: seeing invisible files in Macintosh

How do you reveal all those dot files like .bashrc and .profile?

To see the invisible files, i.e. .bashrc and .bash_aliases etc.

Open Terminal For OS X 10.9 Mavericks or 10.10 Yosemite, run this command (lower-case finder):

    $ defaults write com.apple.finder AppleShowAllFiles TRUE

For OS X 10.8 Mountain Lion, 10.7, or 10.6, run this command (upper-case Finder):

@krmaxwell
krmaxwell / list.md
Last active April 9, 2020 00:58
Destructive malware
  • Chernobyl Virus

Main list

  • Sony Wiper: Trojan.NukeSped.A
  • CryptoLocker: Cryptolocker
    • BankLocker: Trojan:W32/Ransom
    • CTB-Locker: CTBLocker
    • TorLocker: Gen:Variant.Kazy
  • DarkSeoul Wiper: Trojan.Agent.AZHM, Trojan.KillMBR.U, Trojan.Generic.KDV.925961
  • Distrack (Shamoon): Gen:Trojan.Heur.8u0@ILmUdSm
@nikolazic
nikolazic / diff_show_files_only.sh
Created July 10, 2015 02:16
Diff show files only
diff -qr dir1 dir2
@sh1n0b1
sh1n0b1 / elevator.c
Created July 24, 2015 23:55
Windows Open Type ‘atmfd.dll’ Privilege Escalation MS15-078
#include <stdio.h>
#include <string.h>
#include "lib.h"
#include <Wininet.h>
//#include "starter.h"
//include OTF
#include "font.h" // foofont is fetched from loader config struct
//#include "cert.h"
@juanvallejo
juanvallejo / open_firewall_ports.cmd
Created August 15, 2015 03:27
Allow tcp / udp connectinos on Windows server firewall
netsh advfirewall firewall add rule name="name" dir=in action=allow protocol=TCP localport=7777
@iamstoick
iamstoick / fixNTFS.md
Last active June 3, 2024 18:13
How to fix Ubuntu unable to mount NTFS partition
Unable to mount [DEVICE_NAME]

Error mounting /dev/sdc1 at /media/gerald/PicsBooks: Command-line 
'mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdc1" 
"/media/gerald/PicsBooks"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sdc1': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
@earlonrails
earlonrails / docker-command.sh
Last active December 2, 2019 18:27
docker commands
docker rmi $(docker images -a | grep "^<none>" | awk '{print $3}')
docker images -q --filter "dangling=true" | xargs docker rmi
docker rmi $(docker images -q --filter "dangling=true")
docker rmi $(docker images -a | grep "^<none>" | awk "{print $3}")
docker ps -q -a | xargs docker rm