This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
###### NOTE YOU HAVE TO RUN IN root | |
# cd "$(dirname ${BASH_SOURCE[0]})" | |
# dir=${PWD##*/} | |
dir="/opt/minecraft" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#ONLY install 64bit version | |
#check stuff | |
# cd "$(dirname ${BASH_SOURCE[0]})" | |
# dir=${PWD##*/} | |
dir=/opt | |
cd $dir; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
#perl script to make a binary file for love game | |
#zip directory for all, but done on linux ;) | |
sub zip { | |
21chdir $_[0] or die "Can't change to $_[0] $!\n"; #failsafe | |
my $file ='../${PWD##*/}'; #need to do it this form so it gets the exact directory | |
system "zip -r $file.love * "; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
function(${1:...}) | |
${2:--body} | |
end | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>functiona</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.lua</scope> <!--no need since using directory for scope ;) --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<tabTrigger>for</tabTrigger> | |
<scope>source.python</scope> | |
<description>For Loop</description> | |
<content><![CDATA[ | |
for ${1:x} in ${2:obj}: | |
${3:pass} | |
]]></content> | |
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"color_scheme": "Packages/Dayle Rees Color Schemes/Laravel.tmTheme", | |
"font_face": "Inconsolata", | |
"font_size": 12, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, | |
"ignored_packages": [], | |
"rulers": [79], | |
"theme": "Nil.sublime-theme", | |
"trim_trailing_white_space_on_save": true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#from os import * | |
import os | |
def getOS(): | |
user = [ os.getlogin(), os.geteuid(), os.ctermid()] | |
running = [os.ctermid(), os.uname()] | |
[print(x) for x in [user, running]] | |
os.system("whatis qtile; whereis qtile") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local wibox = require("wibox") | |
local awful = require("awful") | |
local naughty = require("naughty") | |
pomodoro = {} | |
p = pomodoro | |
-- quick convert to seconds | |
local tosec = function(min) return min * 60 end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os,subprocess,shutil | |
def move(): | |
return input("Give me the directory of work.\n") | |
def build(): | |
if os.path.exists("./build"): | |
shutil.rmtree("./build") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# Stream set for vlc | |
use IO::Handle; | |
##### Phase1 | |
# Definitions for the stream | |
$path = "/data/Videos"; |
OlderNewer