Skip to content

Instantly share code, notes, and snippets.

View neopunisher's full-sized avatar
🎯
Focusing

Carter Cole neopunisher

🎯
Focusing
View GitHub Profile
@kylemanna
kylemanna / purge.wolfram-engine.txt
Created August 2, 2014 21:46
Raspberry Pi + wolfram-engine => Wasted Space
pi@rpi0 ~ $ sudo apt-get purge wolfram-engine
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
wolfram-engine*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 454 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 77272 files and directories currently installed.)
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@ryanlewis
ryanlewis / google_twunter_lol
Created May 27, 2014 14:28 — forked from jamiew/google_twunter_lol
Naughty word list, compiled by Google and @jamiew
4r5e
5h1t
5hit
a55
anal
anus
ar5e
arrse
arse
ass
@shri
shri / pokemon.json
Last active October 21, 2023 16:31
JSON of pokemon to go with my pokemonMoves.json file
{
"1":{
"name":"Bulbasaur",
"attack":49,
"defense":49,
"evolveLevel":16,
"evolveTo":"2",
"type":"grass",
"moves":[
"tackle",
@neopunisher
neopunisher / changePHPmaxUpload.sh
Last active December 25, 2015 12:49
1st argument is new Mb upload limit
sed -iE 's/upload_max_filesize = [0-9]\+M/upload_max_filesize = '$1'M/g' /etc/php.ini
sed -iE 's/post_max_size = [0-9]\+M/post_max_size = '$1'M/g' /etc/php.ini
grep -n upload_max_filesize /etc/php.ini
grep -n post_max_size /etc/php.ini
/sbin/service httpd restart
(function(){
var a=document.createElement("script");a.src="http://bit.ly/latestUnderscore";var b=document.createElement("script");b.type=a.type="text/javascript";b.src="http://j.mp/latestjquery";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(b);(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a);
})();
@XueshiQiao
XueshiQiao / gource.sh
Last active November 10, 2019 15:56 — forked from cgoldberg/gource.sh
Generate a MP4 Video for your Git project commits using Gource!
# 1.install gource using HomeBrew
$ brew install gource
# 2.install avconv
git clone git://git.libav.org/libav.git
cd libav
# it will take 3-5 minutes to complie, be patient.
./configure --disable-yasm
make && make install
@neopunisher
neopunisher / extsel.js
Created July 1, 2013 12:03
Creating custom :external selector
// Creating custom :external selector
$.expr[':'].external = function(obj){
return (obj.hostname != location.hostname);
};
$(document).ready(function(){
// Add 'external' CSS class to all external links
$('a:external').addClass('external');
});
@ludo237
ludo237 / .htaccess
Last active January 27, 2024 14:08
The ultimate .htaccess file. Please feel free to fork it, edit it and let me know what do you think about it.
# Apache configuration file
# httpd.apache.org/docs/2.2/mod/quickreference.html
# Note .htaccess files are an overhead, this logic should be in your Apache
# config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html
# Techniques in here adapted from all over, including:
# Kroc Camen: camendesign.com/.htaccess
# perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/
# Sample .htaccess file of CMS MODx: modxcms.com
# This is the free sample of .htaccess from 6GO s.r.l.
# @author Claudio Ludovico Panetta (@Ludo237)
dd if=clean.txt of=outclean.txt conv=lcase
tr ' ' '\n'
tr -s ' '
chage -d 0 user
awk ' { if ( length > L ) { L=length} }END{ print L}'
tr '[:upper:]' '[:lower:]' < clean.txt > outclean2.txt
wc -l out*.txt
pstree -p
w
wget -mkEpnp