Skip to content

Instantly share code, notes, and snippets.

@eduo
eduo / gist:77b40b8a79a94848d30aab5f6a3a32aa
Created April 9, 2025 07:54
Piss-poor scam received
Hi, let's have a conversation.
Ţaƙe ɑ mомеnt tо рausе, tаke a deер breath, aոԁ fоcuѕ eոtirely оո thіs меѕѕage.
It's imроrtaոt that yоu ԍіve it your full аttеntіоո.
Ẃе'rе abоut to adԁresѕ ѕомethinԍ ѕeriоuѕ bеtweеn uѕ, аոԁ І'm ոot јokiոg iո thе sliԍhtеѕt.
Үou мay nоt ƙոоw ẇhо I ам, but I ƙոоԝ ẇho yоu аre ɑnԁ rіɡht noԝ, yоu'rе probаblу ẇondеrіոɡ hoԝ, aren't ẏou?
Yоur оnlіnе асtіνіtіes havе been ԛuіtе risκy sсrolling thrоugh vіdeoѕ, ϲliϲkiոg оո lіոƙs, аոԁ ѵіsitіng uոѕeсurеd websіtеѕ.
І емbеdԁed mаlwarе oո wеbѕite, аոd you hɑppеnеd to еnϲouոter it.
Ẃhile ẏou wеre ѕtreамinɡ, your systeм bеϲamе νulnerable throuɡh hᏙŃᏟ, graոtіng ме full аϲсеss to your devіcеѕ (aոԁ ẏоur phоոe, too, yеah. o_O).
@eduo
eduo / gist:2539a7086c5a20f8ac449e977a092f6c
Created October 14, 2024 14:28
stonekeep dospad.cfg idos dosbox.conf
[dosbox]
memsize=16
[sblaster]
sbtype=sb16
sbbase=220
irq=7
dma=1
hdma=5
sbmixer=true
oplmode=opl3
@eduo
eduo / Subreddit
Created July 31, 2020 14:54
List of Subreddits
1200isplenty
15minutefood
3Dprinting
AccentChallenge
Adorifying
AdviceAnimals
AltStore
announcements
AppHookup
apple
@eduo
eduo / SyncToRemoteFolderOSX.sh
Created May 8, 2020 13:03
OSX Bash Script to synchronise remote folder when changes are detected. Requires fswatch (homebrew)
#!/bin/bash
#
run_rsync_acc () {
RSYNC_COMMAND=$(rsync -azPim --delete-before --no-motd --exclude ".*/" --exclude=.DS_Store ~/rootfolder/ [email protected]:remotelocation)
if [ $? -eq 0 ]; then
# Success do some more work!
if [ -n "${RSYNC_COMMAND}" ]; then
# Stuff to run, because rsync has changes
@eduo
eduo / pull-osx-printer.sh
Last active May 8, 2020 13:04
Pulls the configuration of an OSX Printer, so it can be loaded elsewhere
#!/bin/sh
#
# (c) Copyright PaperCut Software, 2007
#
# Author: Chris Dance (chris.dance <a> papercut.com)
# A simple script to copy printer configuration from one Apple Mac OS X
# system to another.
#
TARGET_HOST=`hostname`
#!/bin/bash
#
#Tidy Up the format of all XMLs in a folder with xmllint
mkdir good 2>/dev/null
mkdir origXML 2>/dev/null
ls -1 *.xml | while read file; do xmllint --format "${file}" > good/"${file}"; done
mv *.xml origXML/.
mv good/*.xml ./.
rm -rf good
#!/bin/bash
#
ls -1 *xml | while read FILE
do
FILENAME=${FILE##*/};FILEPATH=${FILE%/*};NOEXT=${FILENAME%\.*};EXT=${FILE##*.}
#echo "Testing for ${FILE} as ${NOEXT}"
xmllint --noout --schema ~/main.xsd ${NOEXT}.xml 2> ${NOEXT}.errors.txt
if grep --quiet validates ${NOEXT}.errors.txt ; then
#!/bin/sh
#Verify your interfaces using "ifconfig" and disconnecting/reconnecting WiFi and Ethernet to find out which is which
# Works in mountain lion. Might need changes in DETECT_INET in other versions
# Default sound name "PC 3270 Beep" doesn't exist in standard installs. Sound name should be the file name,
# without extension, of .aif file placed in either /System/Library/Sounds or ~/Library/Sounds
# In this case I have /Users/eduo/Library/Sounds/PC 3270 Beep.aiff so name is "PC 3270B Beep"
# Remember to set permissions to execute on this script: chmod 755 WiFiOrEth.sh
@eduo
eduo / glyphicon_font-awesome_convert.scss
Created March 22, 2018 20:16 — forked from blowsie/glyphicon_font-awesome_convert.scss
Map glyphicon icons to font-awesome
$fa-font-path: "~font-awesome/fonts";
@import '~font-awesome/scss/font-awesome';
.glyphicon {
@extend .fa;
&.glyphicon-chevron-up {
@extend .fa-chevron-up;
}
&.glyphicon-chevron-right {
@extend .fa-chevron-right;
@eduo
eduo / gist:b4df01c9f43a1d0451cedb2f77b35baf
Created October 19, 2017 21:59 — forked from bryhal/gist:4129042
MYSQL: Generate Calendar Table
DROP TABLE IF EXISTS time_dimension;
CREATE TABLE time_dimension (
id INTEGER PRIMARY KEY, -- year*10000+month*100+day
db_date DATE NOT NULL,
year INTEGER NOT NULL,
month INTEGER NOT NULL, -- 1 to 12
day INTEGER NOT NULL, -- 1 to 31
quarter INTEGER NOT NULL, -- 1 to 4
week INTEGER NOT NULL, -- 1 to 52/53
day_name VARCHAR(9) NOT NULL, -- 'Monday', 'Tuesday'...