Skip to content

Instantly share code, notes, and snippets.

View apisznasdin's full-sized avatar

Hafidz Nasruddin apisznasdin

View GitHub Profile
@apisznasdin
apisznasdin / PL2303 driver
Created July 15, 2015 20:35
PL2303 driver
air:~ hafidz$ ls /dev/cu.*
/dev/cu.Bluetooth-Incoming-Port
/dev/cu.usbserial
file_1 = open("input.txt", "r")
file_2 = open("output.txt","r+")
mylist = sorted(file_1.read().split(','), key=str.lower)
for line in mylist:
file_2.write(","+line)
file_1.close()
file_2.close()
--exclude='$RECYCLE.BIN' --exclude='$Recycle.Bin' --exclude='.AppleDB' --exclude='.AppleDesktop' --exclude='.AppleDouble' --exclude='.com.apple.timemachine.supported' --exclude='.dbfseventsd' --exclude='.DocumentRevisions-V100*' --exclude='.DS_Store' --exclude='.fseventsd' --exclude='.PKInstallSandboxManager' --exclude='.Spotlight*' --exclude='.SymAV*' --exclude='.symSchedScanLockxz' --exclude='.TemporaryItems' --exclude='.Trash*' --exclude='.vol' --exclude='.VolumeIcon.icns' --exclude='Desktop DB' --exclude='Desktop DF' --exclude='hiberfil.sys' --exclude='lost+found' --exclude='Network Trash Folder' --exclude='pagefile.sys' --exclude='Recycled' --exclude='RECYCLER' --exclude='System Volume Information' --exclude='Temporary Items' --exclude='Thumbs.db'
@apisznasdin
apisznasdin / apt.conf proxy setting
Created July 13, 2017 01:13
apt via proxy server
echo 'Acquire::http::Proxy "http://proxysvr.putrajaya.local:8080";' > /etc/apt/apt.conf
@apisznasdin
apisznasdin / yum.conf proxy setting
Created July 13, 2017 01:25
yum via proxy server
echo 'proxy=http://proxysvr.putrajaya.local' > /etc/yum.conf

Keybase proof

I hereby claim:

  • I am apisznasdin on github.
  • I am hafidz (https://keybase.io/hafidz) on keybase.
  • I have a public key ASD2jHrJteweWPiXwp29GL0321_7P3kIZ7HqOXE1pHdFFwo

To claim this, I am signing this object: