Skip to content

Instantly share code, notes, and snippets.

@geek-at
geek-at / trash.sh
Created August 13, 2020 07:27
The script used to trash a banking phishing site
#!/bin/bash
while :; do
verf=$(cat /dev/urandom | tr -dc '0-9' | fold -w 8 | head -n 1)
pin=$(cat /dev/urandom | tr -dc '0-9' | fold -w 5 | head -n 1)
ip=$(printf "%d.%d.%d.%d\n" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))")
@rudolfratusinski
rudolfratusinski / parallels_tools_ubuntu_new_kernel_fix.md
Last active November 23, 2022 20:01
Parallels Tools fix for Ubuntu 18.04 and other Linux distributions with Kernel version >= 4.15

Preparation

  • In open Ubuntu 18.04 machine click Parallels Actions -> "Install Parallels Tools"

  • A "Parallels Tools" CD will popup on your Ubuntu desktop.

  • Open it by double mouse click, copy all the content to a new, empty directory on a desktop, name it for e.g. "parallels_fixed"

  • Open terminal, change directory to parallels_fixed (cd ~/Desktop/parallels_fixed)

  • Make command line installer executable (chmod +x install)

  • Change directory to "installer" (cd installer)

  • Make few other scripts executable: chmod +x installer.* *.sh prl_*

@clawfire
clawfire / listeNationalité.php
Created March 15, 2013 14:58
Liste des nationalités en Francais
<?php
array(
array('id' => 1, 'title' => _('Afghane')),
array('id' => 2, 'title' => _('Albanaise')),
array('id' => 3, 'title' => _('Algerienne')),
array('id' => 4, 'title' => _('Allemande')),
array('id' => 5, 'title' => _('Americaine')),
array('id' => 6, 'title' => _('Andorrane')),
array('id' => 7, 'title' => _('Angolaise')),
array('id' => 8, 'title' => _('Antiguaise et barbudienne')),
@carlh
carlh / Default.sublime-commands
Created January 11, 2013 02:35
SublimeREPL config files for SML. Allows you to launch a functional REPL for SML that runs inside SublimeREPL. This assumes that you've installed SML at the default location. Dependencies: - SML (http://www.smlnj.org/) - SublimeREPL (https://github.com/wuub/SublimeREPL) - Language Definition (https://github.com/seanjames777/SML-Language-Definition
[
{
"caption": "SublimeREPL: SML",
"command": "run_existing_window_command", "args":
{
"id": "repl_sml",
"file": "config/SML/Main.sublime-menu"
}
}
]
@splittingred
splittingred / gist:2353708
Created April 10, 2012 19:03
twitter search criteria for #modx hashtag
modx -2by2host -from:modx -from:modx_feeds -to:modx -from:wehatejbieber -modx_ch -mr_modx -/logs/modx -noon_modx lang:en
<?php
$output = '';
$tElementClass = !empty($tElementClass) ? $tElementClass : 'modSnippet';
$tStart = $modx->getMicroTime();
if (!empty($tElement)) {
switch ($tElementClass) {
case 'modChunk':
$output = $modx->getChunk($tElement, $scriptProperties);
break;