Skip to content

Instantly share code, notes, and snippets.

View sankalpsingha's full-sized avatar

Sankalp Singha sankalpsingha

View GitHub Profile
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active July 6, 2024 21:12
crack activate Office on mac with license file
export const CREATEOPTIONS = 'CREATEOPTIONS';
export const FILLPUZZLE = 'FILLPUZZLE';
export const createOptions = (opts, wordList) => {
const options = {};
options.width = opts.width || wordList[0].length;
options.height = opts.height || wordList[0].length;
options.preferOverlap = opts.preferOverlap === undefined ? true : opts.preferOverlap;
options.fillBlanks = opts.fillBlanks === undefined ? true : opts.fillBlanks;
@vladimirlukyanov
vladimirlukyanov / clean.sh
Created September 26, 2016 17:01
Clear WordPress hacked dir
find ~/public_html -type f -iname "*.php" ! -iname "importbuddy.php" ! -iname "_repairbuddy.php" ! -iname "class-smtp.php" ! -iname "Excel5.php" ! -iname "OLERead.php"| xargs -i egrep -Hli '\@\$GLOBALS.*continue|GLOBALS.*x61|FbU73jxn|edE0lF|IGlmICgg|"1.sh"|GLOBALS.*ieetj84|rBOxlFeDa|rWmpisiBWQ|na20571|eval.*q272748|GET.*ineedthispage|x77.x69.x76|rWmyiJg3T|hacked\ by|eNqdWPtv|vd56b6998|filesman|Googleman|YYKJKaSZ.*\$_POST.*ppeRDsIfDuUi|5ebfbb39|c99shell|bar\/index|client.*x05.x01|POST.*do.*brut|img.*empty.*referrer|AtOPvMzpDq|5UpbRhpW|Qb08tTv2|ko0l|eval.stripslashes.array_pop\(\$_POST|www.*_POST.*yt.*ad.e|QGluaV9|doctoregpg|AnonGhost|AJVkA2M4om|an9dcW1i|PCT4BA6OD|aXNfdXBsb|zZ3HjuNg|E7DsuED2|DarkCrewFriends|zaprosname|HZBL02N|edoced|ZXZhbChiY|7X17f9rG' "{}"
import re
import httplib
import urllib, urllib2, cookielib
def solve(n):
sum = 0
i = 0
num = 2
while i < n:
f = 0
# XCode Command Line Tools
>xcode-select --install
# Install Homebrew
>ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
>echo PATH=/usr/local/bin:/usr/local/sbin:$PATH >> ~/.bash_profile
>source ~/.bash_profile
>brew tap homebrew/versions
@sankalpsingha
sankalpsingha / Ajax Ember Prefilter
Created November 12, 2014 14:41
This is the Ajax prefilter for Rails to be used for the CSRF with EmberJS
$(->
token = $('meta[name="csrf-token"]').attr('content')
$.ajaxPrefilter((options, originalOptions, xhr)->
xhr.setRequestHeader('X-CSRF-Token', token)
)
)
@theturtle32
theturtle32 / compilingNode0.8.4onCentOS5.md
Created July 25, 2012 20:57
Compiling and Installing Node v0.8.4 on CentOS 5.x

Compiling/Installing Node 0.8.4 (and Python 2.6, required by Node) on CentOS 5

Update system packages -- will migrate system forward to CentOS 5.8. (Optional?)

$ sudo yum update

Install the EPEL Repo:

@jhjguxin
jhjguxin / creating-nested-resources-in-ruby-on-rails-3-and-updating-scaffolding-links-and-redirection.markdown
Created July 9, 2012 03:32
Creating nested resources in ruby on rails 3 and updating scaffolding links and redirection
@BennyM
BennyM / Jade Anchor Tag
Created January 28, 2012 22:01
Create anchor tag in text
p Something something. Oh yeah you need a new line
a(href="#") those
| spaces are importantand then a pipe with more spaces to get ur text on the same line, that's usefull.
@nicalpi
nicalpi / facebook_registration.rb
Created September 7, 2011 11:48
Testing Omniauth with Devise, Rspec and Capybara
background do
set_omniauth()
click_link_or_button 'Sign up with Facebook'
end