For people who are afraid of the commandline https://gitgud.io/nixx/WebMConverter
Skip to the download link: http://nixx.is-fantabulo.us/WebM%20for%20Retards/latest.zip
# Powershell 5.1 version | |
ls *.wav | % { $file=$_; Get-Content $file.Name -Encoding byte -TotalCount 8 | Select -Last 4 | Foreach-Object {[byte]$a=0} {$a = $a -bor $_} {New-Object PSObject -Property @{status=$(if($a){'size set'}else{'no size set'});file=$file.Name}} } | |
# Powershell 7.1 version | |
ls *.wav | % { $file=$_; Get-Content $file.Name -AsByteStream -TotalCount 8 | Select -Last 4 | Foreach-Object {[byte]$a=0} {$a = $a -bor $_} {New-Object PSObject -Property @{status=$(if($a){'size set'}else{'no size set'});file=$file.Name}} } |
#!/usr/bin/python3 | |
""" | |
Generate a list of IPv6 ALU(Unique Local Addresses). | |
""" | |
from ipaddress import IPv6Address | |
from random import sample | |
from os import urandom | |
amount = 100 # amount to generate |
#!/bin/sh | |
# | |
# Delete Quasselcore users from your SQLite database | |
# | |
exeq() | |
{ | |
# Execute SQL Query | |
result=$(sqlite3 "${QUASSELDB}" "${1}") | |
echo "${result}" |
For people who are afraid of the commandline https://gitgud.io/nixx/WebMConverter
Skip to the download link: http://nixx.is-fantabulo.us/WebM%20for%20Retards/latest.zip
/* A function that give the first argument to the callback function */ | |
function wrapper(func) { | |
return function(arg1, callback) { | |
func(arg1, function() { | |
callback(arg1); | |
}); | |
}; | |
} | |
function bar(arg1) { |
#!/bin/sh | |
## Make backup of previous config ## | |
iptables-save > /root/iptables-works-`date +%F+%H:%M` | |
# restore with | |
# `iptables-restore < iptables-dump-2014-04-13` | |
## Clear IP rules ## | |
iptables -F | |
iptables -X |
git log --all --graph --pretty=format:'%Cred%h%Creset -%C(cyan)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative |
#! /bin/bash | |
## Install dropbox | |
## `cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -` | |
## This basically creates a folder `~/.dropbox-dist` | |
## Initiate `~/.dropbox-dist/dropboxd` and it will ask you some questions the first | |
## time you run it. | |
pid=`pidof dropbox` | |
command=${1:-'start'} # $1 is the first arg |
/** | |
* Further reading: | |
* Namespaces in JS http://www.dustindiaz.com/namespace-your-javascript/ | |
*/ | |
var observable = (function(){ | |
var observers = []; | |