Skip to content

Instantly share code, notes, and snippets.

View Efreak's full-sized avatar
😴
😪😴🥱😌💤

Efreak Efreak

😴
😪😴🥱😌💤
View GitHub Profile
@Efreak
Efreak / List of Apps
Created April 14, 2014 00:18
List of Apps
|Name|[Source](URL)|Xposed Module|Root?|Device Administrator|notes|
|:---|:--:|:--:|:--:|:--:|:---|
|AcDisplay|[Google Play](https://play.google.com/store/apps/details?id=com.achep.activedisplay)|Yes||Yes|Lockscreen app|
|Per App Hacking|[Search](https://www.google.com/search?q=org.t2k269.perapphacking)|Yes|||Active, unused|
|App Settings|[Search](https://www.google.com/search?q=de.robv.android.xposed.mods.appsettings)|Yes|||Not many settings configured here, really just a few apps with forced fullscreen|
|XuiMod|[Search](https://www.google.com/search?q=com.zst.xposed.xuimod)|Yes|Yes||Batterybar|
|ActivityForceNewTask|[Search](https://www.google.com/search?q=com.germainz.activityforcenewtask)|Yes||||
|Android Tuner Free|[Google Play](https://play.google.com/store/apps/details?id=ccc71.at.free)|Yes|Yes|||
|Burnt Toast|[Search](https://www.google.com/search?q=com.mohammadag.burnttoast)|Yes||||
|ClockColorChanger|[Search](https://www.google.com/search?q=com.sb.p1)|Yes||||
@Efreak
Efreak / irc-steam-relay.js
Last active August 29, 2015 14:06
seishun/steam-irc-relay hacked to work with node-steam-chat-bot
/*
To use:
1. 'npm install steam irc' in your main bot directory
2. add the following to the end of your config.js file
var relay = require('./irc-steam-relay.js');
3. Below that, add the relay({ code FAQ at https://github.com/seishun/irc-steam-relay
- leave out the username, password, and authCode fields.
- Add another field, steamClient: myBot (where myBot is the name of your bot object, as seen in https://github.com/efreak/node-steam-chat-bot/blob/master/example.js#L6)
*/
@Efreak
Efreak / logTrigger.js
Created October 1, 2014 09:22
winston is failing to flush log files with DailyRotateFile
var util = require('util');
var winston = require('winston');
var BaseTrigger = require('./baseTrigger.js').BaseTrigger;
var TinyCache = require( 'tinycache' );
var cache = new TinyCache();
/*
Trigger that logs chat messages to files by groupchat "bot.groupsteamid64.date.log". You NEED to put this trigger first, or it might not log everything. Removes unnecessary line breaks (keeps single breaks, but lines with just spaces or nothing will be removed)
prefix = string - what to prefix the logfiles with. Defaults to "bot." After this comes a '.', the bot's username, another ., the 'name' (see next option) of the groupchat (or steamid64) and a ., then the date.
roomNames = {} - object containing group names by steamid64, to be used in filenames. {'steamid64':'GroupName','steamid64':'GroupName'}
html = string/bool - Set to true to enable html output. Each chat line will be <p><span class="timestamp">timestamp</span> &lt;<a href="linktoprofilebysteamid64" class="username">profile name</a>&gt; - <span class="messag
/**
* Original by Zirak @ http://stackoverflow.com/a/8636050/1012431
*
* Had some issues with the clear function
*
* @type {{intervals: Array, make: make, clear: clear, clearAll: clearAll}}
*/
var interval = {
//to keep a reference to all the intervals
intervals : [],
sudo apt-get install -y aria2
sudo mkdir /etc/aria2
sudo touch /etc/aria2/aria2.session
sudo bash -c "cat <<EOT > /etc/aria2/aria2.conf
daemon=true
continue=true
enable-rpc=true
rpc-listen-port=6800
rpc-listen-all=true
check-certificate=false
2015-06-25T03:19:21.492Z - info: [censoredbotname]/logTrigger: Logfile request by [censoredipaddress]
2015-06-25T03:19:21.494Z - info: HTTP 200 [censoredipaddress] GET 1ms trivia.efreakbnc.net/live url=/live, connection=upgrade, host=trivia.efreakbnc.net, x-real-ip=[censoredipaddress], x-forwarded-for=[censoredipaddress], pragma=no-cache, cache-control=no-cache, accept=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8, user-agent=Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2431.0 Safari/537.36, https=1, dnt=1, accept-encoding=gzip, deflate, sdch, accept-language=en-US,en;q=0.8, method=GET, httpVersion=1.1, originalUrl=/live, , statusCode=200, responseTime=1
2015-06-25T03:19:22.127Z - info: [censoredbotname]/logTrigger: [censoredipaddress] connected via websocket
2015-06-25T03:19:27.542Z - info: [censoredbotname]/logTrigger: [censoredipaddress] connected via websocket
2015-06-25T03:19:42.607Z - info: [censoredbotname]/logTrigger: Logfile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Running windows 98 SE under dosbox

You'll want Daum's SVN version of dosbox, not the latest stable version.

You need to have an MSDOS boot floppy disk image available, that's the boot622.ima file.

You also need to convert your windows 98SE iso file into a hard drive image, and IIRC WinImage is the easiest way to do this.

The commands at the end of dosbox.conf will need to be commented out in order for you to perform the above steps.

@Efreak
Efreak / 99-3ctoolbox.sh
Created September 12, 2015 00:24
Backup script for 3c toolbox system apps. Automatically re-add the 3c toolbox system app and helper apk to/system/priv-app when installing a new nightly. If you don't install 3c toolbox to system partition and this causes a problem, remove line 13.
#!/sbin/sh
#
# /system/addon.d/99-3ctoolbox.sh
# During a CM12.1 upgrade, this script backs up 3c toolbox apks
# installed in /system/priv-app, /system is formatted and
# reinstalled, then the files are restored.
#
. /tmp/backuptool.functions
@Efreak
Efreak / V-GUI Steam--dark.xml
Last active March 26, 2023 04:21 — forked from nairdan2/V-GUI Steam.xml
V-GUI Steam UDL 2.1 Language (Dark Theme)
<NotepadPlus>
<UserLang name="VGUI2" ext="layout styles res" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="yes" forcePureLC="0" decimalSeparator="2" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="yes" Keywords4="yes" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00// 01 02 03 04</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>